var numposts= 10;
function recentthumbs(json) {
document.write('<span class="">');
for (var i = 0; i < numposts; i++) {
var entry = json.feed.entry[i];
var posttitle = entry.title.$t;
var posturl;
if (i == json.feed.entry.length) break;
for (var k = 0; k < entry.link.length; k++) {
if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {
var commenttext = entry.link[k].title;
var commenturl = entry.link[k].href
}
if (entry.link[k].rel == 'alternate') {
posturl = entry.link[k].href;
break
}
}
var thumburl;
try {
    thumburl = entry.media$thumbnail.url;
    thumburl = thumburl.replace("/s72-c/","/s70-c/");
} catch (error) {
s = entry.content.$t;
a = s.indexOf("<img");
b = s.indexOf("src=\"", a);
c = s.indexOf("\"", b + 5);
d = s.substr(b + 5, c - b - 5);
if ((a != -1) && (b != -1) && (c != -1) && (d != "")) {
thumburl = d
} else thumburl = 'http://1.bp.blogspot.com/-Y-a8q4OrxhI/UprlVh1JQII/AAAAAAABwTc/3vCUTpXvIPM/s1600/noimg.jpg'
}
document.write('<a href="' + posturl + '" target ="_top" title="' + posttitle + '"><img class="raj_n" src="' + thumburl + '"/></a>');
}
document.write('</span>')
}			